package sourceCamelCase;

public class TranslateWorldByRegister {

    public static String ArrayFirstSymbolUpper(String[] str) {
        String result ="";

        for (int index = 0; index < str.length; index++) {
            for (int lenghtWord = 0; lenghtWord < str[index].length(); lenghtWord++) {
                if (index == 0) {
                    result = str[index].toLowerCase();
                } else {
                    if (lenghtWord == 0) {
                        result += Character.toString(
                                str[index].charAt(lenghtWord)).toUpperCase();
                    } else {
                        result += Character.toString(
                                str[index].charAt(lenghtWord)).toLowerCase();
                    }
                }

            }
        }
        return result;
    }

}
